package demo4;

import org.w3c.dom.Node;

import java.util.Stack;

public class Stack2self {
    public static void main(String[] args){
            Solutionstack stack3=new Solutionstack();
            String s="({})";
            boolean a=stack3.isVaild(s);
            System.out.println("s中括号匹配程度为："+a);
    }
}
